package com.leoman.plz_p.adapter;

import android.content.Context;

import com.leoman.plz_p.R;
import com.leoman.plz_p.module.bean.MistakeSubjectBean;

import cn.com.corelib.utils.adapter.BaseAdapterHelper;
import cn.com.corelib.utils.adapter.normal.QuickAdapter;

/**
 * Created by guoh on 2018/7/4.
 */
public class MistakeSubjectAdapter extends QuickAdapter<MistakeSubjectBean> {
    public MistakeSubjectAdapter(Context context) {
        super(context, R.layout.item_mistake_subject);
    }

    @Override
    protected void convert(BaseAdapterHelper helper, MistakeSubjectBean item, int position) {
        helper.setText(R.id.tv_position,position+"")
                .setText(R.id.tv_name,item.getTitle())
                .setText(R.id.tv_number,item.getTs()+"");
    }
}
